package com.wzh.dao;

import com.wzh.pojo.Po.Act;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository

public interface Actdao {
	@Insert("insert into act (classid,acttype,lastnoticetime,createtime,actname,actsrc,deadline,acttips)  value (#{classid},#{acttype},#{lastnoticetime},#{createtime},#{actname},#{actsrc},#{deadline},#{acttips})")
	int addact(Act act);
	@Update("update  act set state=-1 where actid=#{actid} ")
	int deleteact(Act act);
	@Select("select * from act where classid=#{classid} and state!=-1")
	List<Act> getall(Act act);
}
